package com.cxc.observer.jdk;

public class Client {
    public static void main(String[] args) {

        Mango attentions = new Mango("芒果");
        attentions.addObserver(new Customer("deer"));
        attentions.addObserver(new Customer("james"));
        attentions.addObserver(new Customer("lison"));
        attentions.addObserver(new Customer("mark"));
        attentions.perform();
    }
}
